<template>
    <div style="overflow:hidden">
        <x-header title="二维码" :left-options="{backText:''}"
                @on-click-back="$router.go(-1)">
        </x-header>
        <divider>Android下载</divider>
        <div style="text-align:center">
            <img class="introduce" src = "@/assets/img/qrcode.png" />
        </div>
        <divider>IOS下载</divider>
        <div style="text-align:center">
            <img class="introduce" src = "@/assets/img/qrIOSCode.png" />
        </div>
        <!-- <div id="qrCode" style="text-align:center;margin-top:30%">
            <div id='code'></div>
            <canvas id="canvas"></canvas>
        </div> -->
    </div>
</template>

<script>
import QRCode from 'qrcode'
import {Divider } from 'vux'
export default {
    name : "qrcode",
    components: {
        QRCode: QRCode,
        Divider
    },
    data(){
        return{
            item : this.$route.query.item
        }
    },
    mounted(){
        this.getCode()
    },
    methods:{
        getCode(){
        //     console.log(this.item)
        //     var canvas = document.getElementById('canvas')
        //     QRCode.toCanvas(canvas, this.item.USER_FULLNAME.val, function (error) {
        //     if (error) console.error(error)
        //     console.log('QRCode success!');
        //   })
        }
    }
}
</script>

<style scoped>
.introduce{
    width: 300px !important;
    height: 300px !important;
}
  /* .transition-view /deep/ .vux-header .vux-header-title > span{
    font-size:18px;
    font-family:PingFangSC-Semibold;
    font-weight:600;
    line-height:20px;
    color: #262A34;
  }
  .transition-view /deep/ .vux-header .vux-header-left .left-arrow:before{
    border-color: #cccccc;
  }  */
</style>
